package com.example.jpetstoreclient.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.jpetstoreclient.common.CommonResponse;
import com.example.jpetstoreclient.domain.Animal;

import java.util.List;

public interface AnimalService extends IService<Animal> {

    CommonResponse<List<Animal>> getAllAnimals();

    CommonResponse<Animal> getAnimalById(int id);

    CommonResponse<List<Animal>> getAnimalsByName(String name);

    CommonResponse<List<Animal>> getAnimalsByType(String type);

    CommonResponse<List<Animal>> getAnimalsByGood_Specific(String good_specific);

    CommonResponse<List<String>> getAllTypes();


}
